﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;

namespace AncheStart.Converter
{
    public class SelectedStepTempateCheckCompareConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            bool isselected = values[0] == values[1];
            if (isselected == true)
            {
            }
            return isselected == true ? Brushes.Green : Brushes.Transparent;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            bool res = (bool)value;
            if (res)
            {
                return new object[] { System.Convert.ToInt32(res) };
            }
            return new object[] { -1 };
        }
    }
}